package com.huonan.service.orderservice.domain;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @author huonan
 * @date 2020/2/27 17:11
 * @desc
 */
@Data
@NoArgsConstructor
public class Order {
    private String id;
    //订单创建时间
    private Date createDate;
    //订单中商品列表
    private List<Item> items;



    public Order(String id, Date createDate, List<Item> items) {
        this.id = id;
        this.createDate = createDate;
        this.items = items;
    }
}
